<html>
<head>
<style>
a:focus { outline-color: green; }
</style>
<script>
window.onload = function() {
  document.getElementById("link").focus();
}
</script>
</head>
<body style="background-color: red">
<a id="link" href="#"/>Test</a>
</body>
</html>
